K-means algorithm v2

version2