compress gzip encoder/decoder
adapted to new data format + tests
add test