Add support for cumulative histograms