Reordering variables based on multiplicity in the SequenceMatcher is exceptionally slow. Most of the time is spent generating the variableMaps.