Debug compression and decompression algorithm functions