Just another binary search