update.parsimonyCost function

Actualization for parsimonyCost.