doubly linked-list from a tree