try all possible tree topologies in likelihood calculation