Set and bag operations on ordered lists
