Implemented functions

lowerBound, upperBound, min, max