Apply K-means Clustering Algorithm