run_length_encoding implementation ++not finished++