ELECTRONIC-STRUCTURE CALCULATIONS AND MOLECULAR-DYNAMICS SIMULATIONS WITH LINEAR SYSTEM-SIZE SCALING