Added #repeated_permutation