use STL's hash map instead of creating the hap table by myself.