implemented SORTEDSET type
fixes #1