trees and huffman coding