implementation of deflate compression(RFC 1951)