Improved code for case where symbol is missing from the tree
Merge remote-tracking branch 'origin/huffman-optimization'