add code for find minimum number of rotated array which allows duplicates