Add an `adjacentPairs` algorithm to Sequence

Would the code I mention in another thread work for this? (And I just noticed that I messed up the spacing in the upload.)