Photonic Devices And Algorithms For Computing by