calcIJ
is an internal auxiliary function that calculates a
unique pair of identifiers for each slave process, corresponding to
the row and column of the block assigned to the slave process (things
are more complicated when the block replication factor, \(h\), is
greater than one).