updated pre, in, and postorder Helpers and print