Renumbering of sets using Scotch