Compression and Decompression (Level 2 - 1) Implementation (excluding Jensen's part)