Update WeightedAverageSmoother.cs

Changing the parallelism from foreach-skip-based to for-indexed-based approach.