Wrote quadtree