DEFLATE (RFC1951)/gunzip implemented in pure Lua