// refactor and replace my Matrix class with Matrix from MathNet.Numerics for fast computations