Addressed a bug that induced off-by-one errors in finding the maximum
change point indices for the list of likelihood ratios. I also optimized
the S1 and S2 calculations slightly to avoid recalculating the
covariances for all time steps for every possible change point.