function for looking up a good hash table size, <= desired storage
static to avoid redefinition
fixed segfaults, made resizing into member function, fixed tests
converted to typedef'd types and replaced vector with linear hash