Improving parentheses generation in binary expressions