add merge sorted array solution.