deciding on priority for discovered overlaps
for reduce, replaced array traversal with graph traversal