Fix off-by-one since back() gives last value inside [begin,end)
RangeTable fixes