added a K-means clustering algorithm
fixed a bug in CosineSimilarity.TFIDF