Add a solution for in-place merge sorted array