Rewrote context tree to use btree implementation again. Now failing all tests, but compiles