Update TreePrinter.java

TreePrinter needs testing