Implemented find duplicates in an unsorted arry