Implemented Tree addNode()