Added building of a consense tree