* Improved algorithm of AllContractions.
* AllContractions no longer returns related contractions when not all
indices are contracted.