first version of moving KDTree from core to ml
first implementation KNearest wrapper on KDTree
removed kdtree declaration from interface
moving algorithm type to param
minor change: moved algorithm type to the end of params
Merge pull request #3126 from avdmitry:move_KDTree_to_ml