Source: https://www.alloschool.com/assets/documents/course-304/tri-par-pile-corrige.pdf