Update Huffman coding implementation

falling asleep, will finish tomorrow

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>