moved util method countTokensIfNeeded
localglobalmatrixbuilder and tfidf implementations
bug fix tf-idf
tf-idf test case
tf-idf documentation
small refactoring on token counter