Realization of simplex method on c#