memory management for addition; still not working for >2 additions e.g. t + t + t