Add intersect_layouts
Rename reduced to block in random_orderings
Change random orderings to take cond layout
Change num_orderings to take block and cond layouts
Change all_orderings to take conds and blocks