Added a scheduler to do trace replay

Can now experiment with random search