A Framework for Differential Frame-Based Matching Algorithms in Input-Queued Switches