Find minumum value of a sorted array that may have been rotated.