NumericalMethods Class in C#