a class handles operations of field GF(2)