exporting kmeans clustering