Numerical algorithms for the solution of linear systems of equations arising in computational electromagnetics