add the lagrange interpolation method