Updated Flatten Binary Tree to Linked List - non rec