Figure 5: Comparator circuit.