Numerical Methods in Photonics