Implemented (some of) Huffman Coding