Create find minimum number in a rotated array