finished run_length_encoding