Source: https://www.math.u-bordeaux.fr/~arichou/Poly_Hadoop.pdf