Fix complation error in Visual Studio 2013

Create issue
Issue #1018 resolved
Lukas Meindl created an issue

min/max now in algorithm

Reproducibility: always