Added generic generating function. Used to generate the roots of a root system. Added ordering to the basic roots.