solution: merge sorted array 1