A Monte Carlo approach to processor allocation in Molecular Dynamics simulations