LZW Compression Algorithm