Ultrafast All-Optical Processor Based on Quantum-Dot Semiconductor Optical Amplifiers