Corrrect mistakes in imperative Huffman tree building part