added treeToDoublyLinkedList