names for omp-critical regions & find the last max instead of the first
add nowait and move another array access to a temp variable