Source: https://www.imo.universite-paris-saclay.fr/~joel.merker/Enseignement/Algebre-Lineaire-Geometrie/gauss-pivot.pdf