Implement an in-place algorithm to merge two sorted arrays of different sizes in non-decreasing order without using extra space.