ACCELERATION SCHEMES FOR AB-INITIO MOLECULAR-DYNAMICS SIMULATIONS AND ELECTRONIC-STRUCTURE CALCULATIONS