forked from: Lagrange polynomial

http://en.wikipedia.org/wiki/Lagrange_polynomial