Eliminates parentheses using algebraic transformations. This operation does not change the semantics of the expression.