a new version of search rotate array
finish search rotated sorted array ii