begin debug KDTree