added expr_stack structure, also implemented deep copy for expr_s