cosmetic changes
sad_reverse misbehavior corrected

when the last derivative is constant, sad_reverse did not register it to
the map.
Flexibility added to variance decomposition

This is to accommodate the case where the computation of the initial
variance has problems with unit roots