N2666

More STL algorithms (revision 2)