Got piecewise lagrange to work, not very effective. Will need more knowledge about fitting functions to data to contiune