kmeans needs Matrix, convert Data using collect()