Make ignoring persistence the default in chg_traj.R.
Bugfix calculation of change direction.

Previous code has the number of classes hard coded as three for producing diagonal matrix necessary for calculating the change direction.