docs: public char[][] toArray() {
      char[][] result = new char[max + 1][];
      for (Map.Entry<Character, String> entry : map.entrySet()) {
        result[entry.getKey()] = entry.getValue().toCharArray();
      }
      return result;
    }