The Computation of loop amplitudes in gauge theories