Added function to do parameter sweeps in parallel

Along with a test.