add solution for merge_sorted_array