Deltas, an adaptation of C++'s adjacent_difference

I put up a pull request for this.