Compiling under VS2013

Project files for Visual Studio 2013. Added <algorithm> header to
several source files so they compile under VS2013.