Fixed a bug in the decompress function. It uses now a const ptr instead of a reference.