Techniques for QCD calculations by numerical integration