Source: https://helios2.mi.parisdescartes.fr/~lomn/Cours/DM/Material/ComplementsCours/decisiontree.pdf