flattenBTtoLinkedList