KdTree build
fix test to build KdTree
find the nearest neighbor in KdTree
fix 1NN and KNN: when it is necessary to search another half-space, all nodes should be pushed to the search path until a leaf node was reached, rather than only pushing the split-node.