add the rotated sorted array