Calculating term freq, doc freq and doc freq vectors while adding a doc and holding it in the repository [to speed up the process]