Fit-nth-Degree-Least-Square-Curve It will fit the nth degree least square curve For refrence you can refer SampleInput.txt