adding binary matches to combinatorics