Simplex algorithm (without diagnostics).