Modified the NormalizeInPlace method to use parallel processing