KMeans distance function now parameterized, uses original KMeans.fastSquaredDistance by default