Use std::min and std::max, no need to define our own.