K-means clustering algorithm added.