implement Berlekamp's algorithm for polynomial factorization over a finite field