Vector and Hashset implementation for cs107 assignment #3