Simple implementation of k-means for testing of bag of words (on some random data)