Efficient implementation of wilson's algorithm for factorizing a self-reciprocal polynomial