You are given a list of transactions (payer, payee, amount) among a set of people. Compute a sequence of transfers that settles all net balances using the minimum number of transactions; return any optimal solution. Amounts are integers; there can be up to 20 distinct people. Describe your algorithm, complexity, and how you would handle multiple optimal answers and large intermediate balances.