optimizations in pos-tagger