Construct the change of basis matrix from multivariate monomials to Legendre polynomials.
Useful links