StageTimes:

--------------------------------------------------------------------------
   Compute the ignition and burnout times given stage mass histories.
   Since version 1.0
--------------------------------------------------------------------------
   Form:
   [kI,kB,mode] = StageTimes( m )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   m            (:,n)  "n" columns of mass histories for "n" stages 

   -------
   Outputs
   -------
   kI           (1,n)  Index of ignition point for each stage
   kB           (1,n)  Index of burnout point for each stage
   mode         (:,1)  Mode at each time, 1 for stage 1, 2 for stage 2, etc

--------------------------------------------------------------------------