Modified singly linked list to use nods as iterators by keeping pointer to parent list