An implementation of K nereast neighbor finder based on kd_tree.