Added missing functions to huffman.cpp