version4.0 change data structure: word(str)-->wordid(int)