working quadtree