A-stable implicit rapid scheme and software solution for electromagnetic wave propagation