compute the right-to-left (ie reverse) running difference between preceding elements
the returned array's length is decremented by one. as a result, a single element array will turn into an empty array
becareful when using with unsigned typed arrays