Switched from Octree to KDtree, massive slowdown