Calculate the difference of two arrays