RLE kernel functions

Run-length encoding support for kernel

* [x] rleCompress
* [x] rleDecompress
* [x] rleCalculateCompressedLength
* [x] rleCalculateDecompressedLength

Stream-based (de)compression to come later.