Implemented formatting an arithmetic expression tree without unnecessary parenthesis in n(lgn) recursively.