Removed inheritance from std::iterator to follow mordern guidelines.