unrolled row and col loops in updateNeighborConflicts; noticeable speedup
minor optimizations in helper, hundreds of milliseconds improvement on difficult cases