added algorithm header
MSVC compiling