Fast Optimal Clearing of Capped-Chain Barter Exchanges