get smallest from a rotated increasing array