fixed bug in Vocabulary class (termID field may not be static)

fixed bug in cosine scoring