Simulating Phylogenetic Trees under a General Model