I have the following list as example:
ls=[ [1, 2, 3, 3, 4, 5, 5, 5, 6], [\'a\', \'a\', \'b\', \'b\', \'c\', \'d\'], [\'t\', \'u\', \'v\', \'w\', \