a simple hash table class for Java