Isotope scattering implementation in C