Huffman codes are now assigned based on frequency

However, I think there's a bug in the tree construction somewhere. I'll
look into it next.