Converts an integer x into Montgomery representation.
int toMontgomery(int x) { return fqmul(x, R2); }