fatory for creating expression tree
adding optimze method hook and building expression tree from symbol stack