STL Algorithms and functors