New parallel rebin function