Returns the sum of the difference of squares of corresponding values in two arrays