Some iterator algorithms, in C++, to replace the built-ins, as exercise.