leetcode: merge sorted array