added quadtree implementation