Several speed improvements in the grading computations.

- It is no longer necessary to simplify grading sets in dastructure.tensorD,
  since it will be done when simplifying the type D module.
- multiplication of small gradings is now more efficient.