add rle encoding and tests for rle and delta-rle