Independent B-Matching Approximation Algorithm With Applications To Peer-To-Peer Networks