permutation on intermediate k-mers