implemented new doubly linked list template