linear search TLE, choose binary search(lower_bound, upper_bound, equal_bound) to do it