Condense a list of payments into the minimum number of transactions necessary to clear the books