[algorithms] Cleanup and modernized cxx examples

1 job for cxx_algo_updated in 11 minutes and 45 seconds (queued for 7 seconds)
Status Job ID Name Coverage
  Build
passed #152480
macosx
build_macosx_36

00:11:45