Adding search in rotated sorted array