Issue #41. Overlaps can no longer cause cycle-forming edges.

Also fixed plugins with the same size not being detected. Not sure about
how the edge formation changes affect the sorting validity, haven't
checked yet.