Molecular dynamics simulations on distributed memory machines