Added: find max in cyclic permutation of sorted array