public HashMap<String, Integer> findMaxRepeats(Node node, int length,
      int repeats, String acc)
  {
    HashMap<String, Integer> returnArr = new HashMap<String, Integer>();
    acc += input.substring(node.stringStart, node.stringEnd);
    if (node.length() >= length && node.count >= repeats
        && isLeftDiverse(node) == true)
    {
      // System.out.println(node);
      // System.out.println(node.stringStart + " " + node.stringEnd);
      // System.out.println(acc);
      returnArr.put(acc, node.count);
    }
    for (Node child : node.children)
    {
      returnArr.putAll(findMaxRepeats(child, length, repeats, acc));
    }
    return returnArr;
  }