find minimum in rotated array added