Permutations of Array 2 - Array has duplicates