Add a couple of missing #include<algorithm> required by Visual Studio 12(2013)