A HashSet implementation from scratch that replicates important functionalities of JDK's internal implementation.