Tweak hw04 tree printing implementation