Deal with empty CDUs in recursive_heads()
Fix graph regression with embedded CDUs
Fix regression in first_widest_dus

Wasn't actually doing the sort