grow huffman trees to the right
no huffman code consisting of only 1s
handling the special case when we only have a single symbol