Simulated evolution applied to study the genetic code optimality using a model of codon reassignments