tndists function

Distances between continuous transpositions of a set