Adding code for finding similarity indices using cosine similarity