Clean up SparkKMeans example's code

remove unused code