Completely reworking parallel_rebin; unfinished