https://fixpartteresa.z4.web.core.windows.net/comparator-circuit-using-transistors.html
Comparator Circuit Using Transistors