Replaced variable-time GCD with consttime inversion to avoid side-channel attacks...