knn looks like a more suitable name for this object, but it's fine.