PRS compression and decompression in Erlang.