adds LZW algorithm