fix solution for search rotated array ii