Added Two methods to find duplicate elements