tCorpus_docsim function

Document similarity