Finished BuildTree.java