small change in MolSim. optimizeThreadSpace is now applied every 5% of the way