update search-in-rotated-sorted-array