enhanched the Arrays::compare method