std::min is in algorithm