queue implementation with singly linked list and iterator capabilities