replacing (i,j) and (i,j,k) with this->ijk - cleaning up 

...ion to make some of the 2D and 3D codes common