implement __iter__() and __next__()
implement doubly linked list