Example of permutations calculation using Loki library http://loki-lib.sourceforge.net/