Add 'Sets' utility class and unit tests (at request of Simon).

Required for future work planned by Simon.