kdtree reconstruct