adding yesterday's invert tree and today's rearranging of numbers