add tree_topo.go

clean up for @xiaoyunwu's pr