Added Cosine Similarity functions into project.