Fixes Gauss Elimination pivot check