Implemented forward and reverse iterators