Augment min/max signature for non-numeric types

Made min/max signature generic to support non-numeric types, such as dates.