adds helper methods for compressing and uncompressing data using gzip