Deflate implementation with rust