Source: https://lyceeomar.atspace.cc/CoursAlgorithmes_Tri.pdf