updating formulation of mls problem to use global matrix
reverting to linear polynomials in mls method