added timing code to compress and decompress