check if list elements are unique