Implemented LZ78 decompression routine.