Added cusumPlot function