Add Tree.Node#depth().
Build tree.