update search min in rotated array