faster array compare