added grid destructor
added data structures and routines for constant-time lookup of tiles in
grids, and for the lookup of the coordinates of a given tile.
also corrected a major error in the narrative description of the grid
data type.