I have a vector with signals with values of 1 or -1.
I want to have a second vector that computes the cumulative sum of consec