refactor test, move implementation of algorithm to method
implement in test lagrange method of interpolation
refactor lagrangemethod, move implementation to separate method
cleaning