Edit search in rotated array to make it easily to read