some mathmatical utilities(tf-idf)