how to find duplicate values in hashmap in java