cleanup in arrayDiff
add argument for custom equality function in arrayDiff