Trinomial addition of Algebra terms