implemented statistical functions to the hashtable template.