First version of Quadtree