Added histograms computation