Implement molecular dynamics (MD)