Create FlattenTree.java