add function printTree to show node