Change Tree::print() to a const function to ensure that state is maintained"