Quick hack to do k-means on text documents using cosine similarity.