6. merge sorted arrays