The "Generating Set" from http://stackoverflow.com/questions/20890802/what-is-an-efficient-algorithm-for-determining-the-generating-sets-whose-product#comment31383325_20890802