Update flattenTree2LinkedList