Written by Paul Bourke
November 1997
Grid is characterised by the number of cells horizontally Ni and vertically Nj
Grids are saved to files in "cell number" order where
for (j=0;j<Nj;j++)
for (i=0;i<Ni;i++)
printf("%g",grid[i][j]);
Calculate indices (i,j) from the cell number as follows