Adding helper for remove duplicates from a list