DB lab#3. Ugly long huffman tree coding fixup.

Use fibtest.sh to check the code on unbalanced trees.