Add more functions to Vector and Set. Enhance unit test.