Program now can determine Legendre's polynomials