Adding Tree to Doubly Linked list code