[set] add library and basic unit test.