add size function to hash_map, fixed Pearson hash function