Plan Repair: A framework and a new heuristic with applications to logistics