solution for FindMinimumInRotatedSortedArrayII