Stochastic molecular dynamics: A combined Monte Carlo and molecular dynamics technique for isothermal simulations