some work on data structure and tests for the doubly linked list