So I have this simple function:
function(firstArray, secondArray) { return firstArray.map((x, y) => Math.abs(x - secondArray[y])).reduce((a, b) => a+b*b)/firstA