Include algorithm in VS2013 and add <type>