First of all, I'd like to thank all of you here for your help. Now, I'm working on many compression techniques, including one that uses the LZW technique. Now, my rendition of LZW is doing very poorly. I attached two code snippets responsible for LZW. The code was written in cc65 C.