implement a core-guided binary search algorithm BC