A function to diff two numeric arrays