use_threads function

Set up threaded ensemble simulations