New version of mergesort (only two arrays)