Remove duplicate elements(nodes) from an Unsorted list