Improve outer reduction

Outer fold/scan is structured in 3 nested loops.
The master branch manages autoparallelization for only one loop.
The changes done are to hierarchically choose one of these 3 loops and parallelize it.
remove_reference not necessary