add resize function to cc_hashmap
change measuring method