LRCUSUM.runlength function

Run length computation of a CUSUM detector