Merge two sorted arrays into one sorted array