bug 884076 Add simple tree implementation