Stochastic tunneling minimization by molecular dynamics: an application to heteropolymer models