Lossless compress and decompress first draft. untested.