Added a function to convert a list to a set
Added a function to convert a set to a list