RunLengthEncoding class