how to remove duplicates from two array in java