Demonstration of a Directed Optical Comparator Based on Two Cascaded Microring Resonators