public function add($element)
    {
        if (!$this->contains($element)) {
            $hash = $this->hash($element);
            $this->hashTable[$hash][] = $element;
            return true;
        }
        return false;
    }