minimum element in sorted and rotated array