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