added doubly linked list and tested it