Update searchInRotatedSortedArray