Completing simplex algorithm.