Added more implementations for rle