Cosine Similarity – comprehending the mathematics and exactly how it really works with python codes