POJ No.3061, binary search, the usage of lower_bound