binning2d: Copy from histo2d for binning