added templates to hashtable implementation