Added basic compression and decompression routines