spatial-grid: Add basic structure for SpatialGrid class.

Missing most of its implementation. The interface is similar to that of
point-quadtree’s Quadtree class.