Move important functions from https://github.com/Consensys/linea-monorepo/tree/prover/dev-small-fields/prover/maths/field to gnark-crypto.