Source: https://sourcesup.renater.fr/capes-math-info/Slides/CM_tris.pdf