public static BigInteger calculateGx(BigInteger p,BigInteger g,BigInteger x){
  return g.modPow(x,p);
}

public static BigInteger calculateGx ( BigInteger p , BigInteger g , BigInteger x ) { return g . modPow ( x , p ) ; }
calculate g ^ x mod p as done in round 1 .
