speed up quadtrees