Switched to CPU implementation of quadtrees