Logic for selecting the two best LCTs. The 8-bit pattern IDs are sent to the comparison logic, and the result is used with multiplexers to select the two best LCTs.