gendata function

Generate data trajectories for MSM