Include algorithm for std::min