add min and max methods to Ord and PartialOrd