started initial implementation of k-means