change map to hashmap and  add left and right word statitcs

add left and right word statitcs