Rewrite of simplify to conform to the new arrangement of coefficients from negative powers to positive powers.
Fixed bug where a zero trigtech was not being simplified to have length zero.
Added a test for the bug.