gridRange is now the actual dimensions of the grid.
fixed bug when the gridPoints.size() is the same for both lines and points for a given gridRange. (i.e. 4)