Add solution to permutations