Add and remove at both ends of a doubly linked list with head and tail.
This interactive visualization needs JavaScript.