Correct parallelization for scalar product and norm