implement hashtable, the penalty for finding "non-existing" key is very
heavy.