added example for doubly linked list over singly linked list