More on parallel huffman compression/decompression.

Also fixed a bunch of memory leaks