Coded most of the kmeans clusterer, need to find a proper way to cache and recompute the clustering when variables are changed. Also need to compute the binning from this.