compareArray