Program to merge two sorted array inplace