adding iterator to single linked list