Wright's Parallel C Algorithms for diffraction