Lab4/ex4: fix compression, implement decompression