implement reverse index
implement reverse index
fix bug in calculate word
fix bug in hs match
fix bug in hs match