Implementation of python itertools and builtin iteration functions for C++11