Quadtree complete working