From Observations to Optimal Phylogenetic Trees