A cost model for the optimization of software evolution policies