A Generic File Compression Library and Application