implemented replaying feature

atomic changes are grouped by timestamp and executed together