Source: http://cedric.cnam.fr/~saporta/DM.pdf