lz78 compressor/decompressor