Settles debts within a group with the fewest number of transactions.
For a group of
The number of transactions can be reduced if the group can be partitioned into
multiple groups such that each group's total debt is zero. Then the number of
transactions required is
Payback finds the group partitionings with the most partitions to minimise the number of transactions required to settle all debts.