Refactored the Duality algorithm to be more concise. (Towards support for even-even)
Refactored the Duality algorithm to be more concise. (Towards support for even-even)

PG-TUe/2IMA15,FerryT/2IMA15,FerryT/2IMA15,PG-TUe/2IMA15