membetulkan fungsi printTree()