Modified the function LZ78_Decompression to make it ready for variable mode