Improve LZWApp with chunk encoding/decoding