initial commit of quadtree code