clustering

k-means clustering, adapted from the polymaps example and implementation.