quadtree algorithm and test