Modify calculation of tf-idf to fit query(more than 1 word); Add poyu's func