I have a homework at algebra, and i don't know where to start. I have to factorize a polynomial in Z3[X] using Berlekamp's algorithm.

The polynomial is: x^5 + 2x^4 + x^2 + x + 1

Can you give me a start and some details about what I should do next. Thanks a lot.