added code to estimate transitions for the posterior of trees