autocomplete(prefix = '') {
    const curr = this.searchNode(prefix);
    return this.getAllWords(prefix, curr);
  }
Return a list of words matching the prefix
@param {*} prefix - The prefix to match.
@returns {string[]}