finishing all permutations code
adding base 3 string addition