correction algorithme calcul barycentre