Search in Rotated Sorted Array II, handle duplicate