added rle solution