Merged two sorted arrays from the back of two arrays.