Made interface to be plug-in compatible with public Spark 1.1.0 Mllib KMeans interface.