Wrote two versions of ShuffleMerge