added polynomial indices to Legendre Polynomials