add explicit import of <algorithm> to resolve build problem on VS2013