find minimum of rotated array 2