Quick RLE implementation