Added Permutation, and removeduplicates