adding the tree builder. will be useful for spitting out json for a treemap viewer