Fixed some bugs in Huf_tree.cpp and in Deflate.cpp files