export class Trie{constructor(){this.clear();} add(word){let node=this._root;++this._wordsInSubtree[this._root];for(let i=0;i