moving KDTree from core to ml

As we refactored ml module, I think it is useful to move KDTree from core to ml.
why not put the type here?