Algorithms for molecular dynamics simulations of keV particle bombardment