k-means algorithm added