Update all algorithms to be V2

Currently all the algorithms examples are V1. They need to be updated to the V2 API.

The straightforward way to do that is to make them all sequential algorithms.