Merge two sorted arrays (alternative version).