Computational techniques for radiative transfer by spherical harmonics