search rotate array
prev