SpatialGrid: added (incomplete) implementation:
it has few unimplemented methods, but works OK with GridNeighborCache.
GridNeighborCache: factored the Grid data structure out and replaced it with SpatialGrid.