Implement huffman's code construction algorithm

Current implementation does without a graphic representation of the
tree.