moving KDTree from core to ml (first pull request)

As we refactored ml module, I think it is useful to move KDTree from core to ml.