change names Next->UpperBound and Prev->LowerBound, added flag 'inclusive'