sclass StringTree1 { bool leaf; new HashMap children; StringTree1 getOrAdd(S s) { StringTree1 t = children.get(s); if (t == null) children.put(s, t = new StringTree1); ret t; } }