primitive hashset implementation