A basic implementation of Huffman compression/decompression in PHP