VarMRTrips 2-14-14

This version includes a flag that specifies whether number of MR trips
is state dependent.  Also generalizes the function to obtain the state
dependent number of MR trips (getnumtrips).

So to implement alternative 3, either set state dependent flag
(statedepMR) to 0 (quickest execution) or set set state dependent flag
(statedepMR) to 1 and MrTrigVec=c(760,760,760,760,760,760).  These give
equivalent outcome.

To implement alternative 1, set set state dependent flag (statedepMR) to
1 and MrTrigVec=c(760,760,926,1649,2855,4864).