added functionality and test for 't'

* created a new struct called tiny node
* every time a new msgNode is created, it is added into the appropriate
place in the new tree.
* assorted minor edits to make this code fit.