Algorithm Description:
The mark_incomplete_spin_sets function was implemented almost directly from the C code Paul provided. During implementation of other goodtimes algorithms, a better way of grouping packets by esa_sweep and esa_energy_step was developed. I think that that code would make this function much cleaner and easier to understand.