Addition of min() and max() functions