improved YoavSparkKMeans