A function to convert a "ranks-based" permutation notation to an "index-based" permutation scheme.
Useful links