update binary search