merger sorted array