Implementation of a compact matrix payoff calculator and tests.