started implementing the huffman tree building