Added k-means clustering algorithm code