Add basic tree classes: node and common tree interface.