Kmeans|| in Conjecture

thisi s fine, you could also do distances.minBy{_._2}._1 which might be faster