k-means

TODO: insert entropy to measure performance.