Got the LZW compressor working to some degree.

It currently uses a lot of memory and takes a lot of time, there is
definitely room for improvement though.