Started k-means implementation