Adding missing files for heap updates; initial refactoring for Huffman coding