Added branchless min() and max() functions.