Flatten Binary Tree to Linked List non recursive