new commit
This code accepts a char, extension, r, orderOfGroup,  a generator and an element from G.
Everything is over a finite field