Parallel dispatch

This pull request proposes a simplification to all existing parallel algorithms, which significantly reduces the necessary boiler plate code when writing new algorithms. No new functionality is introduced.