Manipulate 2D grid indices
