Java Hashset Contains Time Complexity Graph