kdtree finish