introduce treeinterface
tree interface polishing
allow creation of tree of any node type