Provided the basic implementation of Set and HashSet.