Improve CompareArrays