Refactor prefix_tree member to prefixindex
Add calculateposterior() method