permutations of a string using STL