merge two sorted arrays