Merge sorted arrays