static class Node implements Serializable {
char code;
long frequency;
boolean terminal;
byte keyVal;
LinkedList<Node> children;
public Node() {
this.frequency = 0;
this.terminal = false;
this.keyVal = 0;
this.children = new LinkedList<Node>();
}
}