simplify code for search rotated sorted array
add solution for search rotated sorted array 2