debugging kdtree