KDTree debugging