Matrix polynomial extension of the sequence‐generating function method for macromolecular binding