Implements 7z compress function.