data structure for string permutations.