Packet-mode scheduling in input-queued cell-based switches