added sets and functions with unittests

Change-Id: I09cb6ea04e5092b0af222c299fa38b71e0b0424c
Merge "added sets and functions with unittests"