Implement polynomials construction for FI function.