Array comparator