add sim.cpp to compile a individual executable simulator file