impl KdTree: insert and search