Simplify linear expressions.