Refactored a bit kmeans clustere class. Implemented generate_initial_centroids.