Found an example of a huffman tree encoder/decoder 

Hopefully we can use this and improve upon it and make it faster, better, stronger.