Histogram rebin