Computes the dissimilarity measure psi on restricted permutations of two or more sequences. High performance version with limited options