Bug fixes to DoublyLinkedList visualisation.

Bug fixes to DoublyLinkedList visualisation.