added solutions of search in rotated array