Huffman implementation - beginning