First working version
Improved speed of k-means algorithm