add convenience functions for set operations
Merge pull request #5 from johnlaing/master

add convenience functions for set operations