Added hash map checking to StringPermutations to ensure only unique permutations are displayed.