Arrays.equals for array equivalence