A simple run length encoder/decoder.