added a helper function: Utils::showTreeInfo().