Huffman code genration function.

Coding of a function to generate the huffman code corresponding to the
frequencies of the dictionary entries. Not tested yet.
Return format to discuss.