run length encoding example