K-means

Implements K-means clustering as well as scalar clustering of documents