Base implementation of hash tables