Modify Stream to extend SplDoublyLinkedList