Online Dynamic B-Matching∗ With Applications to Reconfigurable Datacenter Networks