Fix parallel simulation code.

Refactored the sequential simulator, moving the run() code to Simulator
and overriding computeAcceleration().