I have m items. Each item is a pair of two values. For example, for m=4, I have the matrix:
m
m=4
julia> valid_pairs = [0 1;