Permutation class lehmerCode implemented