add merge sorted array