solved SearchInRotatedSortedArray, look easy, hard to figure out properly