Chunk by comparing adjacent elements

`chunkBy2` allows chunking by comparing adjacent elements, in a similar way to `groupBy` from Haskell's `Data.List`.