Merged to sorted arrays