add binary search strategy to speed up certain cases