Lower_bound and upper_bound with random access iterator.