Implement stream deflate