calc_doc_sim function

Calculate document similarity using TF-IDF and cosine similarity