moved getNodes to binarytreeprinter created binarytreeprinter