update termDoc

calculate the TF_IDF score which will down-weigh the terms that occur
in many docs and remove the less useful terms