#169 use HashMap to improve performance
Merge pull request #170 from jianjin/master

#169 use HashMap to improve performance