Use min/max templated functions from std.