C lexicographic Permutation algorithm working correctly. Fixed value reversal index problem, and made value swapping into tidy function
C lexicographic Permutation algorithm working correctly. Fixed value reversal index problem, and made value swapping into tidy function

MEhlinger/Algorithms-sp15,MEhlinger/Algorithms-sp15,MEhlinger/Algorithms-sp15,MEhlinger/Algorithms-sp15