A lossless data compression system for a real-time application in HEP data acquisition