Added data generator for K-means

Also made it possible to specify the number of runs in KMeans.main().
Turn on caching in KMeans.main
Merge pull request #761 from mateiz/kmeans-generator

Add data generator for K-means