Added a missing <algorithm> includes for std::min and std::max. Fixes Visual C++ 2013 build.