tree with first pass of huffman