A portable class library implementation of fast LZ4 compression