how to remove duplicate elements from arraylist in java without using collections