spatial-grid: Add SpatialGrid insert() and retrieve() method implementations.