Function name: permutation.prev
Description:

Permute the given vector and get all the previous possible permutations.

Authors: Manos Papadakis