Transaction reduction routine for minimizing number of transactions needed to square a debt (made of expenses) between persons