Flatten Binary Tree to Linked List in Java