Library for general-purpose lossless data compression