fix: `simplifyBasis` (#8226)

This PR fixes the `simplifyBasis` procedure in the commutative ring
procedure in `grind`.
2 files changed