search::KdTree accepts different types of KdTree