Replaced begin()/end() member function calls by global begin()/end() calls