Initial quadtree implementation.