added tree to doubly link list conversion