add iterator for linked list