Added functions to find min and max of two columns