GRID_MAJOR is a template parameter only for class grid and for constructor of distributed_matrix class