Re-start the implementation of the RLE encoder, this time using tests.
This is still incomplete and incorrect.