quadtree work