Update TreePrinter.java

TreePrinter needs testing
Merge pull request #2 from jonatan-l/patch-2

Update TreePrinter.java