Circular Debt Netting: Automatic Optimization of Trust Networks