Realize API of tree and node classes