Implemented QuadTree.