Implement huffman