merge permutation generic class

merge permutation generic class