Create lexicographic_rank.c

This maps/ranks permutations of unique integers lexicographically from 0 to n! - 1