All-optical Pattern Recognition of QPSK Signals for High Speed Optoelectronic Firewalls