Huffman implemented but needs refactoring...