Simulated annealing state swapping now takes into account that factor
symbols and seperator symbols should always be first in the scheme