quadtree working