Update compress.cpp. **unfinished**