change the barycentre function to take a list of (point, mass) couples in argument, and add the center fonction using barycentre