first commit for KdTree