added: search in a rotated array