Need algorithm header for std::min/max