Refactor to two options - parallel pool adjacent violators and iterative version of the same algorithm