Lagrange function

Finished Lagrange eval function, accepts vectors for both x and n