solved [search in rotated array]