Added Grid2D class to replace flat lists.

Grid2D replaces grids formerly stored as flat lists. Includes
square-bracket indexing, flat index retrieval. Grid2D to be used in the
creation of height-maps going forward.