Binary search, in STL, we can use lower_bound.