add search in rotate array

Signed-off-by: WanBin <ouyangwanbin@gmail.com>