Molecular dynamics of associative memory hamiltonians for protein tertiary structure recognition