Added \min/\max macros (and friends)

Closes #10.