Algorithm cleanup

This pull request does not change any functionality but just moves files around to clean up the directory structure of the parallel algorithms module.