update binary_search