Fixes negative brackets in formula
Added Tree