until merge sorted array