Design and implementation of a belief-propagation scheduler for multicast traffic in input-queued switches