Simulating Rare Events in Dynamical Processes