switched spatial data from quadtree to more efficient grid structure