How can I Vectorize the DotProduct calculation of 2 arrays? I have the following method which calcualtes the dot product of the given arrays: