Keeping track of locations and inversions
Broken min periodic sequence.
Minimum cycles.