Added Cosine similarity algorithm
Polish