A new method for distinct inversions and isomorphism detection in kinematic chains. (2016)