add functions to rebin histograms (select subrange)