Tree add() and print functionalitites