permutations solved tih STL