Min, Max and RangeCheck implementations