Implementation of context_tree has been changed to auto-balance. Does not work yet