optimise quadrilateral_closure_ordering