Completed Sample (MathNet.Numerics version) with unit tests