Improved hash table class