Merged quadtree into the repo to minimize dependencies