Fixed small bug with morhpism id, also added ProduceAutomorphicOrbit optimization
Optimization for MinimizeTotalLength