added Sum and Integral instances in expression_tree_transform function