added cosine similarity function
added many more tests
pylint 9.94