Single processor optimization of a Molecular Dynamics code