The problem is how to determine the repetitive sequences and replace the part with consecutive sequences
For example:
`A={{1,3,4},{2,3,5},{1,6}}`
Then, detect there are the repetitive case for 1 and 3 and become
`A={{1,4,6},{3,5,7},{2,8}}`