implemented operator== for iterators and method Directory::end