adding simple example
adding useful condition checking to lagrange-interpolate