fixing merging tries and refactoring
0.7.2