Reduce size of blockrowind/blockcolumnind arrays

Also, add new mpi_rank_for_x() method and make mpi_rank_for_i()
a macros.