article: generate a combination matrix from a set of key/value pairs.