check circular sorted arr