Added deflate/inflate API with additional options