add Run-length encoding