Added convert tree to linkedlist