implements a tree structure suitable for use with secret sharing schemes. Also includes tests. All tests pass.