adds histograms
add initial kmeans implementation