Does anyone know how to implement a binary tree with Huffman codes?