search in rotated sorted array II.  Move step by step to delimit the duplicateds