Implementation of Galois Field