add lagrange.c

Signed-off-by: JIANG Di <dd19941105@gmail.com>
add code comment