Moved TreeBuilder, TreeWriter interfaces and implementations into the
appropriate IO package